<%--
修改违规类别页面
@author <a href="mailto:chenfenghai@ceopen.cn">chenfenghai</a>
action ：violationCategoryAction
method ：edit
created ：2010-10-13
--%>
<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<html>
<head>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/public.js"></script>
<link href="${ctx}/styles/public.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/styles/listTable.css" rel="stylesheet"
	type="text/css" />
<link href="${ctx}/styles/aux_window.css" rel="stylesheet"
	type="text/css" />
<link href="${ctx}/scripts/grid.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/common.js"></script>
<script type="text/javascript">
	function submitForm(){
		var flag = $("categoryForm").fireEvent("onsubmit");
		if(!flag) return;

		setButtonStatus(false);
		$("mySubmit").click();
	}
	function setButtonStatus(statuz){ //设置按钮状态  true 可用,false不可用
		$("btn1_22").disabled = !statuz;
		$("btn1_32").disabled = !statuz;
	}
</script>
</head>

<body>
<iframe id="showResult" name="showResult" style="display: none"
	onload="setButtonStatus(true);"></iframe>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="window_head_outBg">
		<table border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td><img src="${ctx}/images/ico_Advance.gif" width="16"
					height="16" align="absmiddle" /> <span class="window_head_intext">修改违规类别</span>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="aux_header_line_1"></td>
	</tr>
	<tr>
		<td class="aux_header_line_2"></td>
	</tr>
	<tr>
		<td class="content">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<form id="categoryForm" method="post" class="required-validate"
					target="showResult"
					action="${ctx}/system_violationCategoryAction.do?method=edit">
				<input type="submit" id="mySubmit" style="display: none"> <input
					type="hidden" id="option" name="option" value=""> <input
					type="hidden" id="keyword" name="keyword"
					value="${categoryVO.keyword}">
				<td class="aux_outtable_color">
				<table width="100%" border="0" cellpadding="0" cellspacing="1"
					class="aux_intable_color">
					<tr>
						<td class="aux_intable_td1">类别名称：</td>
						<td class="aux_intable_td2"><input name="name"
							type="hidden" value="${categoryVO.name }" />${categoryVO.name }</td>
					</tr>
					<tr>
						<td class="aux_intable_td1">类别说明：</td>
						<td class="aux_intable_td2"><textarea id="description"
							name="description" cols="50" rows="3"
							class="textareatext max-length-50">${categoryVO.description }</textarea></td>
					</tr>
					<tr>
						<td class="aux_intable_td1">序号：</td>
						<td class="aux_intable_require"><input name="sortNumber"
							type="text" class="required validate-integer"
							value="${categoryVO.sortNumber }" size="40" maxlength="9" /></td>
					</tr>
					<tr>
						<td class="aux_intable_td1">使用状态：</td>
						<td class="aux_intable_require"><input name="status"
							type="radio" value="1" class="validate-one-required"
							${categoryVO.status eq '1' ? "checked" : ''} /> 在用 &nbsp; &nbsp;
						&nbsp; &nbsp; &nbsp; <input type="radio" name="status" value="0"
							class="validate-one-required" ${categoryVO.status eq '0' ? "checked" : ''} />
						停用</td>
					</tr>
				</table>
				</td>
				</form>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="window_footer">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="btn_between_space"></td>
						<td class="buttonOffLeft" id="btn1_21"></td>
						<td class="buttonOffMiddle" id="btn1_22"
							onClick="$('option').value='save';submitForm();"
							onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)"
							onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif"
							alt="" width="14" height="14" border="0" align="absbottom" /> 保
						存</td>
						<td class="buttonOffRight" id="btn1_23"></td>
					</tr>
				</table>
				</td>
				<td class="btn_between_space"></td>
				<td>
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td class="buttonOffLeft" id="btn1_31"></td>
						<td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();"
							onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)"
							onBlur="btn_change(3)"><img
							src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14"
							border="0" align="absbottom" /> 关 闭</td>
						<td class="buttonOffRight" id="btn1_33"></td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</body>
</html>